<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    {include file='Public:head_in' /}
</head>
<body>

<div class="tab-pane" id="tab-second">
    <form id="add_form"  method="post" action="{:url('admin/goodsGroup/edit')}" class="form-horizontal">
        <div class="panel-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-md-3 control-label">分类名称</label>
                        <div class="col-md-9">
                            <input name="name" type="text" class="form-control" value="{$list.name}"/>
                            <input name="id" type="hidden" class="form-control" value="{$list.id}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">分类英文名称</label>
                        <div class="col-md-9">
                            <input name="enname" type="text" class="form-control" value="{$list.enname}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">父级分类</label>
                        <div class="col-md-9">
                            <select class="form-control select" name="pid">
                                <option value="">作为父级</option>
                                {volist name="group" id="vo"}
                                <option  {:is_selected($list.pid,$vo.id)}  value="{$vo.id}">{$vo.lefthtml}{$vo.name}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-3 control-label">菜单徽标</div>
                        <div class="col-md-9">
                            <input name="icon" type="text" class="form-control" value="{$list.icon}"/>
                            <span class="help-block">格式:fa fa-users</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">备注</label>
                        <div class="col-md-9 col-xs-12">
                            <textarea name="remark" value="{$list.remark}" class="form-control" rows="5"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3  control-label">菜单状态</label>
                        <div class="col-md-9">
                            <label class="switch">
                                <input name="status" type="checkbox" {eq name="list.status" value="1"}checked{/eq} value="1"/>
                                <span></span>
                            </label>
                            <span class="help-block">默认正常</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="panel-footer">
            <button class="btn btn-info pull-right">保存修改<span class="fa fa-floppy-o fa-right"></span></button>
        </div>
    </form>
</div>
</body>
</html>